package com.study.graph.model;

import com.study.graph.model.annotation.FieldType;
import com.study.graph.model.annotation.VertexMapping;
import com.study.graph.model.annotation.FieldMapping;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@VertexMapping("serve")
public class ServeEdge extends BaseEdge implements Serializable {

    @FieldMapping(value = "start_year",type = FieldType.Long)
    private Long startYear;

    @FieldMapping(value = "end_year",type = FieldType.Long)
    private Long endYear;

}